package cn.shop.dys.util;

/**
 * Created by Administrator on 2016/4/21.
 */
public class PayCenterUtils {

    public static final int ADDRESSINFO = 0;
    public static final int PAYMENTLIST = 1;
    public static final int DELIVERYLIST = 2;
    public static final int PRODUCTLIST = 3;
    public static final int CHECKOUTPROM = 4;
    public static final int CHECKOUTADDUP = 5;

    public static int getType(String string) {
        if ("addressInfo".equals(string)) {
            return ADDRESSINFO;
        } else if ("paymentList".equals(string)) {
            return PAYMENTLIST;
        } else if ("deliveryList".equals(string)) {
            return DELIVERYLIST;
        } else if ("productList".equals(string)) {
            return PRODUCTLIST;
        } else if ("checkoutProm".equals(string)) {
            return CHECKOUTPROM;
        } else if ("checkoutAddup".equals(string)) {
            return CHECKOUTADDUP;
        }
        return -1;
    }

}
